package cn.stronglink.asset.module.report.mapper;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.plugins.pagination.Pagination;

import cn.stronglink.asset.model.ReportFile;
import cn.stronglink.asset.model.ReportPlan;
import cn.stronglink.asset.module.report.vo.ReportFileListVo;
import cn.stronglink.asset.module.report.vo.ReportTempletVo;

public interface ReportMapper {

	List<ReportTempletVo> queryList(Pagination page,@Param("params") Map<String, Object> params);

	ReportTempletVo qryById(@Param("id") Long id);

	List<ReportPlan> qryPlanListByTempletId(@Param("templetId") Long templetId);

	void create(ReportTempletVo reportTempletVo);

	void addReportPlan(HashMap<String, Object> map);

	void edit(ReportTempletVo reportTempletVo);

	void delReportPlanByTempletId(@Param("templetId") Long templetId);

	void remove(@Param("id") Long id);

	List<ReportFileListVo> queryReportFileList(Pagination page,@Param("params") Map<String, Object> params);

	void removeFile(@Param("id") Long id);

	void insertReportFile(ReportFile rf);

}
